/*
 * XLog.h
 *
 *  Created on: 2012-12-3
 *      Author: yangentao@gmail.com
 */

#ifndef XLOG_H_
#define XLOG_H_

#include <windows.h>
#include <string>

using namespace std;

class LogMessage {
public:
	string tag;
	string title;
	string text;
public:
	SYSTEMTIME time;
	DWORD pid;
	DWORD tid;

public:
	LogMessage();
};

enum LogLevel{
	logVerbose,
	logInfo,
	logDebug,
	logWarn,
	logError,
};

void logx(LogLevel level, LogMessage msg);
//debug
void logd(LogMessage msg);
//info
void logi(LogMessage msg);
//warning
void logw(LogMessage msg);
//error
void loge(LogMessage msg);
//verbose
void logv(LogMessage msg);

#endif /* XLOG_H_ */
